<%--
  Created by IntelliJ IDEA.
  User: 14246
  Date: 2017/12/26
  Time: 14:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>情绪分析标记页面</title>
    <link rel='stylesheet' type='text/css' href="${pageContext.request.contextPath}/view/app/word/css/mark.css"/>
</head>
<body>
<h1 class="header">
    情绪分析标注页面
</h1>
<div class="box">

    <div class="left">
        <p class="hello" id="hello_Text">您好！</p>
        <p id="username_Text">${user.name}</p>
        <p id="permission_Text">（${user.role.role}）</p>
        <br>
        <p>你已经标注词汇数：${markCount}</p>
        <p>你已经标注微博数：${microBlogCount}</p>
        <%--<ul class="shenqing">--%>
            <%--<li><a href="mark.jsp">申请词汇标注</a> </li>--%>
            <%--<li><a href="microBlogMark.jsp">申请微博标注</a> </li>--%>
        <%--</ul>--%>
        <p class="shenqing"><a href="mark.jsp">申请词汇标注</a> </p>
        <p><a href="mark.jsp">申请微博标注</a> </p>
    </div>

    <div class="right">
        <form action="/word/save.do" target="body">
            <table border="1" cellpadding="1" cellspacing="1" class="table">
                <tr>
                    <td>单词</td>
                    <td>词性</td>
                    <td>强度</td>
                    <td>紧张度</td>
                    <td>方向性</td>
                </tr>

                <c:forEach var="word" items="${words}" >
                    <tr>
                        <input type="hidden" name="word_id" value="${word.id}"/>
                        <%--<td style="display: none" id="word_id">--%>
                            <%----%>
                        <%--</td>--%>
                        <td>${word.wordName}</td>
                        <td><select name="polarity" onchange="fun(this.id)">
                            <option value="0" selected="selected">-------</option>
                            <option value="正面">正面</option>
                            <option>负面</option>
                            <option>中性</option>
                            <option>不确定</option>
                        </select></td>

                        <td><select name="strength" onchange="fun(this.id)">
                            <option value="0" selected="selected">-------</option>
                            <option>很弱</option>
                            <option>一般</option>
                            <option>强烈</option>
                            <option>不确定</option>
                        </select></td>
                        <td><select name="tension" onchange="fun(this.id)">
                            <option value="0" selected="selected">-------</option>
                            <option>很弱</option>
                            <option>一般</option>
                            <option>强烈</option>
                            <option>不确定</option>
                        </select></td>

                        <td><select name="directionality" onchange="fun(this.id)">
                            <option value="0" selected="selected">-------</option>
                            <option>内内</option>
                            <option>内外</option>
                            <option>外内</option>
                            <option>外外</option>
                            <option>不确定</option>
                        </select></td>
                    </tr>
                </c:forEach>
            </table>

            <input type="submit" value="提交"/>
            <input type="reset" value="重置" onclick="onClick()"/>
        </form>

    </div>
</div>

<div class="footer">Copyright © 2017-2018 by C201</div>
</body>
</html>
